package com.demo.pojo;

/**
 * @ClassName User
 * @Description TODO
 * @Author Windy
 * @Date 2022/9/9 19:51
 * @Version 1.0
 **/
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
public class User {
    private int id;

    private String name;

    private String pwd;

    private int sex;

//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;

    public User() {
    }

    public User(int id, String name, String pwd, int sex, Date birth) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.sex = sex;
        this.birth = birth;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", sex=" + sex +
                ", birth=" + birth +
                '}';
    }
}
